<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>爱乘车</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="关键词" />
<meta name="description" content="描述" />
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
	 function getname(key,stationname) {
		var sname= new Array(); //定义一数组 
		sname=stationname.split("\(");
		var sname2=stationname.substring(sname[0].length+1,stationname.length-sname[0].length+2)
		 
		 var a=document.getElementById("a"+key);
		 var dv=document.createElement("div");
		 a.appendChild(dv);
		 dv.innerHTML="<h2>"+sname[0]+"</h2><h5>"+sname2+"</h5>";
	 }
	  </script>

</head>
<body>
<include file="Bus/View/Gg/gg.html" />
<div class="container">
	<if condition="count($buslist) gt 0">
	 <div class="station"><h3>{$buslist[0].station_name}</h3></div>
	</if>
<!-- 	<div class="gzh_index">
		<div class="gzh_index_note">
			<h2>想要在家也能查公交？</h2>
		</div>
		<a href="/bus/gzh/gzh.html"><img class="gzh_index_img" src="<?php echo IMG_URL;?>quguanzhu.png" /></a>
		<div class="clearfix"></div>
	</div> -->
	<div class="buslist">
	      <ul>
			  <foreach name="buslist" item="lin">
				  <li>
				  	<a id="a{$key}" href="{:U('./Bus/Stationarticle/stationarticle',array('did'=>$lin['did'],'station_name'=>$lin['station_name']))}">
						<script type="text/javascript">getname('{$key}','{$lin.name}');</script>						
					</a>
				  </li>
			  </foreach>	
        </ul>
	</div>
</div>
</body>
</html>